import {DrawStatus,DrawType} from "@/views/roi/config";


export type Toolbars = {
    name: string
    drawType: string
    drawColor?: string
    color?: string
    class?: string
    className?: string
    size?: number | string
    disabled?: boolean
    title?: string
}
export type  DrawStatusType = `${DrawStatus}`
// export type  DrawStatusKeyType = keyof typeof DrawStatus

//  点
export interface Point {
    x: number,
    y: number,
    left?: boolean,
    right?: boolean
}
export interface RectanglePointData {
    leftTopPoint: Point,
    rightBottomPoint: Point
}
// 带方向的点
export interface Arrow  {
    left: boolean,
    right: boolean
}
export interface RoiData {
    id?: string;
    borderDesc?: string[];
    roiName?: string;
    color: string;
    points: Point[];
    type: DrawType;
}